import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';

@Component({
  selector: 'page-tasklist',
  templateUrl: 'tasklist .html'
})
export class TasklistPage {

  constructor(public navCtrl: NavController) {

  }

}
addTask(){

 
  + let theNewTask : string = prompt("新任务");
  
   
  + if(theNewTask !=""){
  
   
  + this.tasks.push({title:theNewTask,status:'open'});
  
   
  + }
  